package com.ychs.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.io.Serializable;

/**
 * copyright(c)2021 YYB.ALL rights Reserved
 * <p>
 * 描述:用户实体类
 *
 * @author 原玉波
 * @version 1.0
 * @date 2021/7/2
 */
@JsonIgnoreProperties(value = {"handler"})
public class User implements Serializable {
    /**
     * 编号
     */
    private int id;
    /**
     *院系
     */
    private College college;
    /**
     *专业
     */
    private Major major;
    /**
     *用户名
     */
    private String username;
    /**
     *密码
     */
    private String password;
    /**
     *角色
     */
    private Role role;
    /**
     *状态
     */
    private String state;
    /**
     *姓名
     */
    private String name;
    /**
     *年级
     */
    private int grade;
    /**
     *班级
     */
    private String clazz;
    /**
     *校内职务
     */
    private String schoolJob;
    /**
     *手机
     */
    private String phone;
    /**
     *QQ
     */
    private String QQ;
    /**
     *备注
     */
    private String remark;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public College getCollege() {
        return college;
    }

    public void setCollege(College college) {
        this.college = college;
    }

    public Major getMajor() {
        return major;
    }

    public void setMajor(Major major) {
        this.major = major;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getGrade() {
        return grade;
    }

    public void setGrade(int grade) {
        this.grade = grade;
    }

    public String getClazz() {
        return clazz;
    }

    public void setClazz(String clazz) {
        this.clazz = clazz;
    }

    public String getSchoolJob() {
        return schoolJob;
    }

    public void setSchoolJob(String school_job) {
        this.schoolJob = school_job;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getQq() {
        return QQ;
    }

    public void setQq(String qq) {
        this.QQ = qq;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", college=" + college +
                ", major=" + major +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", role=" + role +
                ", state='" + state + '\'' +
                ", name='" + name + '\'' +
                ", grade=" + grade +
                ", clazz='" + clazz + '\'' +
                ", schoolJob='" + schoolJob + '\'' +
                ", phone='" + phone + '\'' +
                ", QQ='" + QQ + '\'' +
                ", remark='" + remark + '\'' +
                '}';
    }
}
